package com.example.javaserve.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @projectName: MyGene
 * @package: com.example.mygene.result
 * @className: Result
 * @author: xxXPCSC
 * @description: TODO
 * @date: 2023/11/5 14:28
 * @version: 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract  class Result<T> implements Serializable {
    private Integer code;

    private String message;

    private List<T> data;


    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}

